@model MvcCmsWiki.Data.DTOWikiContent
@{
    ViewBag.Title = "Edit Wiki";
    Layout = "~/RazorThemes/Default/Views/Shared/_Layout.cshtml";
}
@section HtmlHead{
}
<h2>
    Edit</h2>
@using (Html.BeginRouteForm("WikiAct", new { action = "EditWiki", Model.WikiTitle.Slug }, FormMethod.Post))
{
    <fieldset>
        <span>
            <label for="Name">
                Title:</label>
            @Html.TextBox("Name", Model.WikiTitle.Name) </span><span>
                <label for="Name">
                    Limit Access To ~, Groups:</label>
                @Html.TextBox("RestrictedToGroups", Model.WikiTitle.RestrictedToGroups)
        </span>
        <label for="Source">
            Source:</label>
        @Html.TextArea("Source")
        <label>
        </label>
        <input type="submit" value="Save" />
        @if (Model.WikiTitle.TitleID > 0)
        {
            <input type="button" value="Cancel" onclick="window.location.href='@Url.RouteUrl("Default") '" />
        }
    </fieldset>
}
